root(app, title, content, login, msg) ::= <<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml">
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <title>$title$</title>
              <link href="$app.baseUrl$/skin/css/style.css" rel="stylesheet" type="text/css" />
              </head>
              
              <body>
              <div id="container">
                <div id="header">
                  <div id="logo"><a href="$app.baseUrl$/"><h1>myauctioneer</h1></a></div>
$if(login)$                  
                  <div id="header_navi"><a href="$app.baseUrl$/user/login/">Einloggen</a>&nbsp;|&nbsp;<a href="$app.baseUrl$/user/register/">Registrieren</a></div>
$else$                  
                  <div id="header_navi"><a href="$app.baseUrl$/user/logout/">Ausloggen</a>&nbsp;|&nbsp;<a href="$app.baseUrl$/user/register/">Registrieren</a></div>
$endif$                  
                </div>
                <div id="menu">
                  <div id="main_navi">
					  <ul>

	<li><a href="$app.baseUrl$/hello/">Hello</a>&nbsp;&nbsp;|&nbsp;</li>
	<li><a href="$app.baseUrl$/hello/database/">Database</a>&nbsp;&nbsp;|&nbsp;</li>
	<li><a href="$app.baseUrl$/user/">My account</a>&nbsp;&nbsp;|&nbsp;</li>

                          <li><a href="#">Artikel neu anlegen</a>&nbsp;&nbsp;|&nbsp;</li>
                          <li><a href="#">Artikel verwalten</a>&nbsp;&nbsp;|&nbsp;</li>
                          <li><a href="#">Statistiken ansehen</a>&nbsp;&nbsp;|&nbsp;</li>
                          <li><a href="#">&nbsp;</a></li>
                          <li><a href="#">&nbsp;</a></li>
                      </ul>
                  </div>
                </div>
                <div id="search_bar">
                        <fieldset>
                            <legend>Artikelsuche</legend>
                            <form action="#" method="get" name="search_form" class="search_form">
                                <table>
                                  <tr>
                                    <td><input name="search_field" type="text" class="search_field" value="Volltextsuche" /></td>
                                    <td>
                                        <select name="search_category" class="search_category">
                                          <option value="default">Alle</option>
                                          <option value="smartphone">Smartphone</option>
                                          <option value="notebook">Notebook</option>
                                          <option value="tablepc">TabletPC</option>
                                        </select>
                                    </td>
                                    <td>
                                      <input type="checkbox" name="auction" value="auction">Auktion
                                      <input type="checkbox" name="directsale" value="directsale">Direktverkauf
                                    </td>
                                    <td>
                                      <input name="search_button" type="button" class="search_button" value="Artikel suchen" />
                                    </td>
                                  </tr>
                                </table>  
                            </form>
                        </fieldset>
                    </div>
<div id="content">
	$content$

$if(msg)$
	<div class="message">$msg$</div>
$endif$

<table border="1" style="margin-top: 100px">
	<tr><th>app.hashCode</th><td>$app.hashCode$</td></tr>
	<tr><th>app.baseDir</th><td>$app.baseDir$</td></tr>
	<tr><th>app.baseUrl</th><td>$app.baseUrl$</td></tr>
	<tr><th>app.serverTime</th><td>$app.serverTime$</td></tr>
</table>

</div>
              </div>
              <div id="footer">
                <div id="copyright">Copyright &copy; 2011 myauctioneer</div>
              </div>
              </body>
              </html>
>>
